package com.blah.gwtgames.client.common.dlx;

import java.util.ArrayList;
import java.util.List;

public class Choice
{
	List nodes = new ArrayList();
	Node root = new Node(null, this);
	private Object key;
	
	public Choice()
	{
		setKey(null);
	}
	
	public Choice(Object key)
	{
		setKey(key);
	}
	
	public Object getKey()
	{
		return key;
	}
	
	public void setKey(Object key)
	{
		this.key = key;
	}
	
	public void addConstraint(Constraint constraint)
	{
		nodes.add(new Node(constraint, this));
	}
}
